# A Makefile to easily handle the compilation of
# presentations, made using the LaTeX class Beamer
#
# Patrick Pletscher
# 2006-03-05
# 
# Modified by Mark Hills, 2006-05-28
#
# NOTE: We assume that you have a directory structure similar to
# the following:
# 
#  slides/
#    src/
#    slides.pdf
#    notes.pdf
#    handout.pdf
#
# So we copy the resulting pdf's to the parent directory.

# LaTeX flags
LATEXFLAGS = -interaction=nonstopmode

# LaTeX sourcecode of slides
SRC = hills-2008-wrla-presentation

# create the normal slides for the presentation
slides:		$(SRC).tex
		pdflatex $(LATEXFLAGS) $(SRC)
		pdflatex $(LATEXFLAGS) $(SRC)
#		dvips -p PDF -G0 -o $(SRC).ps $(SRC).dvi
#		ps2pdf $(SRC).ps
	        pdfnup --nup "2x3" --offset ".25cm .25cm" --delta ".25cm .5cm" --frame true --scale 0.9 $(SRC).pdf
		mv -f $(SRC)-2x3.pdf $(SRC)-6up.pdf
	        pdfnup --nup "2x2" --offset ".25cm .25cm" --delta ".25cm .5cm" --frame true --scale 0.9 $(SRC).pdf
		mv -f $(SRC)-2x2.pdf $(SRC)-4up.pdf

# delete the logs
clean:		
		rm -f *.aux *.log *.out *.ps *.toc *.nav *.snm *.dvi h*.pdf *.vrb

